package day10Stringdemo;

public class Demo1 {
    public static void main(String[] args) {
        String s1 = new String("abc");
        String s2 = "Abc";


        System.out.println(s1 == s2);

//equals 比较必须是完全一样,,密码比较
        boolean result1 = s1.equals(s2);
        System.out.println(result1);
        //不用完全一样  （大写小写）  ，，验证码比较
        boolean result2 = s1.equalsIgnoreCase(s2);
        System.out.println(result2);
    }
}
